package com.test;

import lombok.Data;

import java.io.Serializable;


public class Book implements Serializable {
    private String title;
    private String author;
    private int price;

    public Book(String title, String author, int price) {
        this.title = title;
        this.author = author;
        this.price = price;
    }

    public String toString() {
        return "《" + title + "》"+" 作者：" + author + " 价格￥" + price;
    }

}
